package com.scott.ch080.impl.c04;

import com.scott.ch080.Parent;

/**
 * @author 黄后林
 * @version 1.0
 * @note
 * @date 2021-12-18 17:53:19
 */
public class Child<T,E> implements Parent<T> {

    private T data;

    private E age;

    public Child(T data, E age) {
        this.data = data;
        this.age = age;
    }

    @Override
    public T getData() {
        return data;
    }

    public E getAge() {
        return age;
    }
}
